import React from 'react';
import ReactDOM from 'react-dom';
import {HashRouter as Router, Route} from "react-router-dom";
import Search from "./search/Search";
import Profit from "./finance/Profit";
import Growing from "./finance/Growing";
import Debt from "./finance/Debt";
import Manufacturing from "./finance/Manufacturing";
import Fund_1 from "./fund/Fund_1";
import Fund_2 from "./fund/Fund_2";
import LeftNav from "./left_nav/LeftNav";
import Overview from "./overview/Overview";
import Risk from "./risk/Risk";
import Technology from "./technology/Technology";
import Login from "./login/Login";
import Register from "./register/Register";

import 'antd/dist/antd.css';

export const server_addr = "http://101.133.166.202:8080";


ReactDOM.render(
    <Router>
        {/*搜索*/}
        <Route exact path='/' component={Search}/>

        {/*登录*/}
        <Route exact path='/Login' component={Login}/>

        {/*注册*/}
        <Route exact path='/Register' component={Register}/>

        {/*财务状况分析*/}
        <Route exact path='/Profit' component={Profit}/>
        <Route exact path='/Growing' component={Growing}/>
        <Route exact path='/Debt' component={Debt}/>
        <Route exact path='/Manufacturing' component={Manufacturing}/>

        {/*风险规避分析*/}
        <Route exact path='/Risk' component={Risk}/>

        {/*技术指标分析*/}
        <Route exact path='/Technology' component={Technology}/>

        {/*资金统计分析*/}
        <Route exact path='/Fund_1' component={Fund_1}/>
        <Route exact path='/Fund_2' component={Fund_2}/>

        {/*总体概括*/}
        <Route exact path='/Overview' component={Overview}/>

        {/*左侧导航栏*/}
        <Route exact path='/Profit' component={LeftNav}/>
        <Route exact path='/Growing' component={LeftNav}/>
        <Route exact path='/Debt' component={LeftNav}/>
        <Route exact path='/Manufacturing' component={LeftNav}/>
        <Route exact path='/Risk' component={LeftNav}/>
        <Route exact path='/Technology' component={LeftNav}/>
        <Route exact path='/Fund_1' component={LeftNav}/>
        <Route exact path='/Fund_2' component={LeftNav}/>
        <Route exact path='/Overview' component={LeftNav}/>

    </Router>,
    document.getElementById('root')
);